import { BasicColumn } from '/@/components/Table';

export const AdvertListColumns: BasicColumn[] = [
  {
    title: '广告名称',
    dataIndex: 'name',
  },
  {
    title: '广告类型',
    dataIndex: 'media_type',
    slots: { customRender: 'mediaType' },
  },
  {
    title: '广告内容',
    dataIndex: 'media',
    slots: { customRender: 'media' },
  },
  {
    title: '停留时间',
    dataIndex: 'time',
    slots: { customRender: 'time' },
  },
  {
    title: '备注',
    dataIndex: 'note',
  },
];

export const AdvertFormConfig = {
  labelWidth: 100,
  schemas: [
    {
      field: 'name',
      label: '广告名称:',
      component: 'Input',
      componentProps: {
        placeholder: '请输入广告名称',
      },
      colProps: {
        xl: 8,
        xxl: 6,
      },
    },
  ],
};
